package com.zheng.shop.dao.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 订单日志
 * </p>
 *
 * @author likun
 * @since 2017-12-29
 */
@TableName("shop_order_log")
public class ShopOrderLog extends Model<ShopOrderLog> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 创建时间
     */
	private Date ctime;
    /**
     * 最后修改时间
     */
	private Date mtime;
    /**
     * 信息
     */
	private String info;
    /**
     * 操作人员
     */
	@TableField("operator_name")
	private String operatorName;
	@TableField("operator_id")
	private Integer operatorId;
    /**
     * 订单日志类型
     */
	@TableField("log_type")
	private Integer logType;
    /**
     * 订单序列号
     */
	@TableField("order_sn")
	private String orderSn;
    /**
     * 订单id
     */
	@TableField("order_id")
	private Integer orderId;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getCtime() {
		return ctime;
	}

	public void setCtime(Date ctime) {
		this.ctime = ctime;
	}

	public Date getMtime() {
		return mtime;
	}

	public void setMtime(Date mtime) {
		this.mtime = mtime;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public String getOperatorName() {
		return operatorName;
	}

	public void setOperatorName(String operatorName) {
		this.operatorName = operatorName;
	}

	public Integer getOperatorId() {
		return operatorId;
	}

	public void setOperatorId(Integer operatorId) {
		this.operatorId = operatorId;
	}

	public Integer getLogType() {
		return logType;
	}

	public void setLogType(Integer logType) {
		this.logType = logType;
	}

	public String getOrderSn() {
		return orderSn;
	}

	public void setOrderSn(String orderSn) {
		this.orderSn = orderSn;
	}

	public Integer getOrderId() {
		return orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ShopOrderLog{" +
			"id=" + id +
			", ctime=" + ctime +
			", mtime=" + mtime +
			", info=" + info +
			", operatorName=" + operatorName +
			", operatorId=" + operatorId +
			", logType=" + logType +
			", orderSn=" + orderSn +
			", orderId=" + orderId +
			"}";
	}
}
